package cnpm.service.impl;

import java.util.List;

import cnpm.dao.NationalityDAO;
import cnpm.dao.impl.NationalityDAOImpl;
import cnpm.entity.Nationality;
import cnpm.service.NationalityService;

public class NationalityServiceImpl implements NationalityService {

	private NationalityDAO nDAO;
	
	public NationalityServiceImpl() {
		nDAO = new NationalityDAOImpl();
	}
	
	@Override
	public List<Nationality> getAllNationality() {
		return nDAO.getAllNationality();
	}

	@Override
	public Nationality getNationalityByID(int NationalityID) {
		return nDAO.getNationalityByID(NationalityID);
	}

}
